## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-

def build(bld):
    if not bld.env['ENABLE_EXAMPLES']:
        return;

    obj = bld.create_ns3_program('main-grid-topology',
                                 ['core', 'mobility', 'network'])
    obj.source = 'main-grid-topology.cc'

    obj = bld.create_ns3_program('main-random-topology',
                                 ['core', 'mobility'])
    obj.source = 'main-random-topology.cc'
    
    obj = bld.create_ns3_program('main-random-walk',
                                 ['core', 'mobility'])
    obj.source = 'main-random-walk.cc'

    obj = bld.create_ns3_program('mobility-trace-example',
                                 ['core', 'mobility', 'network'])
    obj.source = 'mobility-trace-example.cc'

    obj = bld.create_ns3_program('ns2-mobility-trace', 
                                 ['core', 'mobility'])
    obj.source = 'ns2-mobility-trace.cc'

    obj = bld.create_ns3_program('bonnmotion-ns2-example', 
                                 ['core', 'mobility'])
    obj.source = 'bonnmotion-ns2-example.cc'
